import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintStream;
import java.util.Hashtable;


public class DataIndexMerge {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		
		String d = "/home/pjbarrio/Documents/RelationExtractionStuff/DatabasesInterfaces/FinalDataIndex.txt";
		
		BufferedReader br = new BufferedReader(new FileReader(new File(d)));
		
		String line;
		
		Hashtable<Integer, String> table = new Hashtable<Integer, String>();
		
		while ((line = br.readLine())!=null){
			
			Integer index = Integer.valueOf(line.substring(0, line.indexOf(",")));
			
			String website = line.substring(line.indexOf(",")+1);
			
			table.put(index, website);
		}

		br.close();
		
		System.setOut(new PrintStream(new File(d)));
		
		for (int i = 1; i <= 1400; i++) {
			
			System.out.println(i + "," + table.get(i));
			
		}
	}

}
